package com.example.reggie.factory_pattem;

public class FactoryDemo {
    public static void main(String[] args) {
        Computer c = FactoryPatten.createComputer("huawei");
        if (c != null) {
            System.out.println(c.getName());
            c.start();
        }
    }
}
